package com.cgbl.cg.view

import android.content.Context
import com.lxj.xpopup.core.BottomPopupView
import com.cgbl.cg.R
import com.lxj.xpopup.core.CenterPopupView
import com.lxj.xpopup.util.XPopupUtils

class ExchangeCodePop(context: Context) : CenterPopupView(context) {

    override fun getImplLayoutId(): Int {
        return R.layout.app_pop_exchange_code
    }

    override fun initPopupContent() {
        super.initPopupContent()
    }

    override fun getMaxWidth(): Int {
        return if (popupInfo.maxWidth == 0) XPopupUtils.getAppWidth(context) else popupInfo.maxWidth
    }
}